package com.qww.exec07;

class B {
    B(int i) { System.out.println("B constructor"); }
}

class A {
    A(int i) { System.out.println("A constructor"); }
}

class C extends A {
    public B b = new B(100);

    C() {
        super(1);
    }
}

public class Exec07 {

    public static void main(String[] args) {
        new C();
    }
}
/* 云心结果
A constructor
B constructor
 */